package com.goodving.guli.activity;

import android.content.Context;
import android.os.Build;
import android.text.TextUtils;

import com.goodving.guli.view.C3657a;

/**
 * Created by john on 2015/11/26.
 */
public class C3246a {
    public static String m22922a(Context context) {
        return C3246a.m22923a(context, "ro.miui.ui.version.name");
    }

    public static String m22923a(Context context, String str) {
        String str2 = C3657a.f18328f;
        try {
            Class loadClass = context.getClassLoader().loadClass("android.os.SystemProperties");
            return (String) loadClass.getMethod("get", new Class[]{String.class}).invoke(loadClass, new Object[]{str});
        } catch (IllegalArgumentException e) {
            throw e;
        } catch (Exception e2) {
            return C3657a.f18328f;
        }
    }

    public static boolean m22924b(Context context) {
        return (!TextUtils.isEmpty(C3246a.m22922a(context)) && Build.VERSION.SDK_INT >= 19) || Build.VERSION.SDK_INT >= 21;
    }
}
